package com.sc.nft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.MallShareTeamOrder;
import com.sc.nft.entity.dto.AdminMallShareTeamOrderPageDTO;
import com.sc.nft.entity.dto.MallShareTeamOrderPageDTO;
import com.sc.nft.entity.dto.TeamOrderDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 分享购团队订单 Mapper 接口
 * </p>
 *
 * @author ligen
 * @since 2023-12-13
 */
public interface MallShareTeamOrderMapper extends BaseMapper<MallShareTeamOrder> {

    /**
     * 后台成团订单列表
     *
     * @param teamId 团队ID
     * @return
     */
    Page<AdminMallShareTeamOrderPageDTO> getAdminMallShareTeamOrderPageDTO(Page page, @Param("teamId") Long teamId);


    /**
     * 用户端成团订单列表
     *
     * @param teamId 团队ID
     * @return
     */
    Page<MallShareTeamOrderPageDTO> getMallShareTeamOrderPageDTO(Page page, @Param("teamId") Long teamId);

    /**
     * 获取分享购订单信息
     *
     * @param teamId
     * @return
     */
    List<TeamOrderDTO> getTeamOrderDTO(@Param("teamId") Long teamId);

}
